import type { RouteRecordRaw } from 'vue-router';

import Layout from '@/layouts/index.vue';

export const homeRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    component: Layout,
    redirect: '/home/index',
    children: [
      {
        path: '/home/index',
        name: 'HomeIndex',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '设备可视化',
          keepAlive: true,
        }
      },
      {
        path: '/home/detail',
        name: 'HomeDetail',
        component: () => import('@/views/detail/index.vue'),
        meta: {
          title: '设备可视化详情',
          keepAlive: true,
        }
      },
      {
        path: '/home/detail1',
        name: 'HomeDetail1',
        component: () => import('@/views/detail_01/index.vue'),
        meta: {
          title: '设备可视化详情',
          keepAlive: true,
        }
      },
      {
        path: '/home/detail2',
        name: 'HomeDetail2',
        component: () => import('@/views/detail_02/index.vue'),
        meta: {
          title: '设备可视化详情',
          keepAlive: true,
        }
      },
      {
        path: '/home/detail3',
        name: 'HomeDetail3',
        component: () => import('@/views/detail_03/index.vue'),
        meta: {
          title: '设备可视化详情',
          keepAlive: true,
        }
      }
    ]
  }
];
